package edu.imu.question.mapper;

import edu.imu.question.entity.TemplateQuestion;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TemplateQuestionMapper {

    @Select("select id, template_id as templateId, question_type as questionType," +
            "question_order as questionOrder,question_num as questionNum," +
            " question_title as questionTitle, input_placeholder as inputPlaceholder " +
            "from template_question where template_id=#{templateId}")
    List<TemplateQuestion> getByTemplateId(long templateId);
}
